<!-- 巡检信息 -->
<template>
	<view style="height: 100vh; background-color: #FFFFFF;">
		<u-navbar title-color="#FFFFFF" height="48" back-icon-color="#FFFFFF" :border-bottom="false" :is-fixed="true" :title="'巡检详情'"></u-navbar>
		<u-cell-group v-model="Inspectioninfo">
			<u-cell-item :border-bottom="true" title="企业名称" :value="Inspectioninfo.enterpriseName" :arrow="false"></u-cell-item>
			<u-cell-item :border-bottom="true" title="设备名称" :value="Inspectioninfo.equipmentName" :arrow="false"></u-cell-item>
			<u-cell-item :border-bottom="true" title="巡检人员" :value="Inspectioninfo.inspectionUserName" :arrow="false"></u-cell-item>
			<u-cell-item :border-bottom="true" title="巡检时间" :value="Inspectioninfo.inspectionTime | dateFormat" :arrow="false"></u-cell-item>
			<u-cell-item :border-bottom="true" title="设备状态" :value="Inspectioninfo.equipmentStatus | equipmentStatus" :arrow="false"></u-cell-item>
			<u-cell-item :border-bottom="true" title="巡检描述" :value="Inspectioninfo.inspectionRemark" :arrow="false"></u-cell-item>
		</u-cell-group>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				inspectionId:"",
				Inspectioninfo: [],
			}
		},
		onLoad(e) {
			this.inspectionId = e.ucId
		},
		onShow() {
			this.getEquipmentInspectionInfo(this.inspectionId)
		},
		methods: {
			
			getEquipmentInspectionInfo(val) {
				this.utils.request("/api/app/Inspection/getInEquipmentInspectionVo", {ucId: val}, "post", "app", true).then(res => {
					console.log(res)
					this.Inspectioninfo = res.data
				}).catch(error => {
					console.log(error)
				})
			},
		}
	}
</script>

<style>

</style>
